package designprinciples.interfaceisolation.positive;

import java.io.Serializable;
import java.util.List;

/**
 * @program: MyTank
 * @description:
 * @author: 王术平
 * @create: 2021-01-23 21:15
 **/
public class Client {
    public static void main(String[] args) {


    }
}


interface UserService {
    User selectById(Serializable id);

    List<User> list(User user);

    int update(User user);

    int delete(Serializable id);
}


interface RoleService {
    List<Role> listRole();
}

class User {
    private int age;
    private String name;
}

class Role {
    private String name;
    private String desc;
}
